import { ref, defineComponent } from 'vue';
import { Button } from 'ant-design-vue';
import './index.scss';

export default defineComponent({
  name: 'JSX-Basic',
  setup() {
    const count = ref(100);
    const getjsx = () => {
      count.value += 1;
    };

    return () => (
      <div class='JSX-Basic'>
        <Button onClick={getjsx}>加一</Button>
        <div>{count.value}</div>
      </div>
    );

  },
});
